package com.chenyun.sys.service.impl;

import java.io.Serializable;

import com.chenyun.sys.domain.Dept;
import com.chenyun.sys.mapper.DeptMapper;
import com.chenyun.sys.service.DeptService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService {

	// 重写这些方法方便缓存

	@Override
	public Dept getOne(Wrapper<Dept> queryWrapper) {
		return super.getOne(queryWrapper);
	}

	@Override
	public boolean updateById(Dept entity) {
		// TODO Auto-generated method stub
		return super.updateById(entity);
	}

	@Override
	public boolean removeById(Serializable id) {
		return super.removeById(id);
	}


	@Override
	public boolean save(Dept entity) {
		return super.save(entity);
	}
}
